package com.atom.module.mvi.binder.middleware.config

import com.atom.module.mvi.binder.middleware.base.Middleware
import io.reactivex.rxjava3.functions.Consumer

/**
 * 该类是一个Middleware生产者
 * 通过将Consumer 入参 包装转化为 Middleware
 */
typealias ConsumerMiddlewareFactory<T> = (Consumer<T>) -> Middleware<Any, T>
